﻿using System;
using System.Collections.Generic;
using System.Data.Linq.Mapping;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Anke.SHManage.Model
{
    [Table(Name = "TTask")]
    public class TaskAmbulanceInfo
    {
        private string m_TaskCode;
        /// <summary>
        /// [任务编码]
        /// </summary>
        [Column(IsPrimaryKey = true, Name = "任务编码", DbType = "char(20)", Storage = "m_TaskCode")]
        public string TaskCode
        {
            get { return m_TaskCode; }
            set { m_TaskCode = value; }
        }

        private string m_EventCode;
        /// <summary>
        /// [事件编码]
        /// </summary>
        [Column(Name = "事件编码", DbType = "char(16)", Storage = "m_EventCode", UpdateCheck = UpdateCheck.Never)]
        public string EventCode
        {
            get { return m_EventCode; }
            set { m_EventCode = value; }
        }

        private int m_AcceptNumber;
        /// <summary>
        /// [受理序号]
        /// </summary>
        [Column(Name = "受理序号", DbType = "int", Storage = "m_AcceptNumber", UpdateCheck = UpdateCheck.Never)]
        public int AcceptNumber
        {
            get { return m_AcceptNumber; }
            set { m_AcceptNumber = value; }
        }

        private string m_TaskStreamNumber;
        /// <summary>
        /// [任务流水号]
        /// </summary>
        [Column(Name = "任务流水号", DbType = "int", Storage = "m_TaskStreamNumber", UpdateCheck = UpdateCheck.Never)]
        public string TaskStreamNumber
        {
            get { return m_TaskStreamNumber; }
            set { m_TaskStreamNumber = value; }
        }
        private string m_UserFlowNumber;
        /// <summary>
        /// [用户流水号]
        /// </summary>
        [Column(Name = "用户流水号", DbType = "varchar(20)", Storage = "m_UserFlowNumber", UpdateCheck = UpdateCheck.Never)]
        public string UserFlowNumber
        {
            get { return m_UserFlowNumber; }
            set { m_UserFlowNumber = value; }
        }
        private string m_DispatcherCode;
        /// <summary>
        /// [责任调度人编码]
        /// </summary>
        [Column(Name = "责任调度人编码", DbType = "char(5)", Storage = "m_DispatcherCode", UpdateCheck = UpdateCheck.Never)]
        public string DispatcherCode
        {
            get { return m_DispatcherCode; }
            set { m_DispatcherCode = value; }
        }

        private string m_DispatcherName;
        /// <summary>
        /// [责任调度人]
        /// </summary>
        public string DispatcherName
        {
            get { return m_DispatcherName; }
            set { m_DispatcherName = value; }
        }

        private string m_StationCode;
        /// <summary>
        /// [分站编码]
        /// </summary>
        [Column(Name = "分站编码", DbType = "char(3)", Storage = "m_StationCode", UpdateCheck = UpdateCheck.Never)]
        public string StationCode
        {
            get { return m_StationCode; }
            set { m_StationCode = value; }
        }

        private string m_StationName;
        /// <summary>
        /// [分站]
        /// </summary>
        public string StationName
        {
            get { return m_StationName; }
            set { m_StationName = value; }
        }
        private bool m_IFCarryout;
        /// <summary>
        /// [是否执行中]
        /// </summary>
        [Column(Name = "是否执行中", DbType = "bit", Storage = "m_IFCarryout", UpdateCheck = UpdateCheck.Never)]
        public bool IFCarryout
        {
            get { return m_IFCarryout; }
            set { m_IFCarryout = value; }
        }
        // private Nullable<DateTime> m_CallAlarmTime;
        ///// <summary>
        ///// 电话震玲时刻
        ///// </summary>

        // public Nullable<DateTime> CallAlarmTime
        // {
        //     get { return m_CallAlarmTime; }
        //     set { m_CallAlarmTime = value; }
        // }

        // private Nullable<DateTime> m_StartAcceptTime;
        ///// <summary>
        ///// 开始受理时刻
        ///// </summary>
        // public Nullable<DateTime> StartAcceptTime
        // {
        //     get { return m_StartAcceptTime; }
        //     set { m_StartAcceptTime = value; }
        // }

        // private Nullable<DateTime> m_EndAcceptTime;
        ///// <summary>
        ///// 结束受理时刻
        ///// </summary>
        // public Nullable<DateTime> EndAcceptTime
        // {
        //     get { return m_EndAcceptTime; }
        //     set { m_EndAcceptTime = value; }
        // }

        private Nullable<DateTime> m_StartTaskTime;
        /// <summary>
        /// [生成任务时刻]
        /// </summary>
        [Column(Name = "生成任务时刻", Storage = "m_StartTaskTime", UpdateCheck = UpdateCheck.Never)]
        public Nullable<DateTime> StartTaskTime
        {
            get { return m_StartTaskTime; }
            set { m_StartTaskTime = value; }
        }

        private string m_GetCommandTime;
        /// <summary>
        /// [接收命令时刻]
        /// </summary>
        public string GetCommandTime
        {
            get { return m_GetCommandTime; }
            set { m_GetCommandTime = value; }
        }
        private DateTime? m_TGetCommandTime;
        /// <summary>
        /// [接收命令时刻]
        /// </summary>
        [Column(Name = "接收命令时刻", Storage = "m_TGetCommandTime", UpdateCheck = UpdateCheck.Never)]
        public DateTime? TGetCommandTime
        {
            get { return m_TGetCommandTime; }
            set { m_TGetCommandTime = value; }
        }
        private string m_OutAmbulanceTime;
        /// <summary>
        /// [出车时刻]
        /// </summary>
        public string OutAmbulanceTime
        {
            get { return m_OutAmbulanceTime; }
            set { m_OutAmbulanceTime = value; }
        }
        private DateTime? m_TOutAmbulanceTime;
        /// <summary>
        /// [出车时刻]
        /// </summary>
        [Column(Name = "出车时刻", Storage = "m_TOutAmbulanceTime", UpdateCheck = UpdateCheck.Never)]
        public DateTime? TOutAmbulanceTime
        {
            get { return m_TOutAmbulanceTime; }
            set { m_TOutAmbulanceTime = value; }
        }
        private string m_ArriveSenceTime;
        /// <summary>
        /// [到达现场时刻]
        /// </summary>
        public string ArriveSenceTime
        {
            get { return m_ArriveSenceTime; }
            set { m_ArriveSenceTime = value; }
        }
        private DateTime? m_TArriveSenceTime;
        /// <summary>
        /// [到达现场时刻]
        /// </summary>
        [Column(Name = "到达现场时刻", Storage = "m_TArriveSenceTime", UpdateCheck = UpdateCheck.Never)]
        public DateTime? TArriveSenceTime
        {
            get { return m_TArriveSenceTime; }
            set { m_TArriveSenceTime = value; }
        }
        private string m_LeaveSenceTime;
        /// <summary>
        /// [离开现场时刻]
        /// </summary>
        public string LeaveSenceTime
        {
            get { return m_LeaveSenceTime; }
            set { m_LeaveSenceTime = value; }
        }
        private DateTime? m_TLeaveSenceTime;
        /// <summary>
        /// [离开现场时刻]
        /// </summary>
        [Column(Name = "离开现场时刻", Storage = "m_TLeaveSenceTime", UpdateCheck = UpdateCheck.Never)]
        public DateTime? TLeaveSenceTime
        {
            get { return m_TLeaveSenceTime; }
            set { m_TLeaveSenceTime = value; }
        }
        private string m_ArriveHospitalTime;
        /// <summary>
        /// [到达医院时刻]
        /// </summary>
        public string ArriveHospitalTime
        {
            get { return m_ArriveHospitalTime; }
            set { m_ArriveHospitalTime = value; }
        }
        private DateTime? m_TArriveHospitalTime;
        /// <summary>
        /// [到达医院时刻]
        /// </summary>
        [Column(Name = "到达医院时刻", Storage = "m_TArriveHospitalTime", UpdateCheck = UpdateCheck.Never)]
        public DateTime? TArriveHospitalTime
        {
            get { return m_TArriveHospitalTime; }
            set { m_TArriveHospitalTime = value; }
        }
        private string m_MissionCompleteTime;
        /// <summary>
        /// [完成时刻]
        /// </summary>
        public string MissionCompleteTime
        {
            get { return m_MissionCompleteTime; }
            set { m_MissionCompleteTime = value; }
        }
        private DateTime? m_TMissionCompleteTime;
        /// <summary>
        /// [完成时刻]
        /// </summary>
        [Column(Name = "完成时刻", Storage = "m_TMissionCompleteTime", UpdateCheck = UpdateCheck.Never)]
        public DateTime? TMissionCompleteTime
        {
            get { return m_TMissionCompleteTime; }
            set { m_TMissionCompleteTime = value; }
        }
        private string m_ReturnStationTime;
        /// <summary>
        /// [返回站中时刻]
        /// </summary>
        public string ReturnStationTime
        {
            get { return m_ReturnStationTime; }
            set { m_ReturnStationTime = value; }
        }
        private DateTime? m_TReturnStationTime;
        /// <summary>
        /// [返回站中时刻]
        /// </summary>
        [Column(Name = "返回站中时刻", Storage = "m_TReturnStationTime", UpdateCheck = UpdateCheck.Never)]
        public DateTime? TReturnStationTime
        {
            get { return m_TReturnStationTime; }
            set { m_TReturnStationTime = value; }
        }
        private string m_EmergencyKM;
        /// <summary>
        /// [急救公里数]
        /// </summary>
        [Column(Name = "急救公里数", DbType = "float", Storage = "m_EmergencyKM", UpdateCheck = UpdateCheck.Never)]
        public string EmergencyKM
        {
            get { return m_EmergencyKM; }
            set { m_EmergencyKM = value; }
        }
        private string m_DriveKM;
        /// <summary>
        /// [行驶公里数]
        /// </summary>
        [Column(Name = "行驶公里数", DbType = "float", Storage = "m_DriveKM", UpdateCheck = UpdateCheck.Never)]
        public string DriveKM
        {
            get { return m_DriveKM; }
            set { m_DriveKM = value; }
        }

        private bool m_IFNormalEnd;
        /// <summary>
        /// [是否正常结束]
        /// </summary>
        [Column(Name = "是否正常结束", DbType = "bit", Storage = "m_IFNormalEnd", UpdateCheck = UpdateCheck.Never)]
        public bool IFNormalEnd
        {
            get { return m_IFNormalEnd; }
            set { m_IFNormalEnd = value; }
        }

        private string m_SendAmbulanceList;
        /// <summary>
        /// [派车列表]
        /// </summary>
        public string SendAmbulanceList
        {
            get { return m_SendAmbulanceList; }
            set { m_SendAmbulanceList = value; }
        }

        private string m_TaskRemark;
        /// <summary>
        /// [备注]
        /// </summary>
        [Column(Name = "备注", DbType = "varchar(1000)", Storage = "m_TaskRemark", UpdateCheck = UpdateCheck.Never)]
        public string TaskRemark
        {
            get { return m_TaskRemark; }
            set { m_TaskRemark = value; }
        }

        private string m_AmbulanceTypeCode;
        /// <summary>
        /// 车辆类型编码
        /// </summary>
        public string AmbulanceTypeCode
        {
            get { return m_AmbulanceTypeCode; }
            set { m_AmbulanceTypeCode = value; }
        }

        private string m_AmbulanceType;
        /// <summary>
        /// 车辆类型名称
        /// </summary>
        public string AmbulanceType
        {
            get { return m_AmbulanceType; }
            set { m_AmbulanceType = value; }
        }

        private string m_AmbulanceNumber;
        /// <summary>
        /// 车牌号码
        /// </summary>
        public string AmbulanceNumber
        {
            get { return m_AmbulanceNumber; }
            set { m_AmbulanceNumber = value; }
        }

        private string m_RealAmbulanceSign;
        /// <summary>
        /// 实际标识
        /// </summary>
        public string RealAmbulanceSign
        {
            get { return m_RealAmbulanceSign; }
            set { m_RealAmbulanceSign = value; }
        }

        private string m_AmbulanceTel;
        /// <summary>
        /// 随车电话
        /// </summary>
        public string AmbulanceTel
        {
            get { return m_AmbulanceTel; }
            set { m_AmbulanceTel = value; }
        }

        private string m_AmbulanceCode;
        /// <summary>
        /// 车辆编码
        /// </summary>
        [Column(Name = "车辆编码", DbType = "char(5)", Storage = "m_AmbulanceCode", UpdateCheck = UpdateCheck.Never)]
        public string AmbulanceCode
        {
            get { return m_AmbulanceCode; }
            set { m_AmbulanceCode = value; }
        }
        private string m_Driver;
        /// <summary> 
        /// Driver
        /// </summary> 
        [Column(Name = "司机", DbType = "varchar(50)", Storage = "m_Driver", UpdateCheck = UpdateCheck.Never)]
        public string Driver
        {
            get { return m_Driver; }
            set { this.m_Driver = value; }
        }
        private string m_Doctor;
        /// <summary> 
        /// Doctor
        /// </summary> 
        [Column(Name = "医生", DbType = "varchar(50)", Storage = "m_Doctor", UpdateCheck = UpdateCheck.Never)]
        public string Doctor
        {
            get { return m_Doctor; }
            set { this.m_Doctor = value; }
        }
        private string m_Nurse;
        /// <summary> 
        /// 护士
        /// </summary> 
        [Column(Name = "护士", DbType = "varchar(50)", Storage = "m_Nurse", UpdateCheck = UpdateCheck.Never)]
        public string Nurse
        {
            get { return m_Nurse; }
            set { this.m_Nurse = value; }
        }
        private string m_DanJiaGong;
        /// <summary> 
        /// DanJiaGong
        /// </summary> 
        [Column(Name = "担架工", DbType = "varchar(50)", Storage = "m_DanJiaGong", UpdateCheck = UpdateCheck.Never)]
        public string DanJiaGong
        {
            get { return m_DanJiaGong; }
            set { this.m_DanJiaGong = value; }
        }
        private string m_Rescue;
        /// <summary> 
        /// 抢救员
        /// </summary> 
        [Column(Name = "抢救员", DbType = "varchar(50)", Storage = "m_Rescue", UpdateCheck = UpdateCheck.Never)]
        public string Rescue
        {
            get { return m_Rescue; }
            set { this.m_Rescue = value; }
        }

        private string m_ResultCode;
        /// <summary> 
        /// ResultReason
        /// </summary> 
        public string ResultCode
        {
            get { return m_ResultCode; }
            set { this.m_ResultCode = value; }
        }
        private string m_ResultReason;
        /// <summary> 
        /// 异常结束原因编码
        /// </summary> 
        [Column(Name = "异常结束原因编码", DbType = "int", Storage = "m_ResultReason", UpdateCheck = UpdateCheck.Never)]
        public string ResultReason
        {
            get { return m_ResultReason; }
            set { this.m_ResultReason = value; }
        }
        private string m_PatientCount;
        /// <summary> 
        /// 实际救治人数
        /// </summary> 
        [Column(Name = "实际救治人数", DbType = "int", Storage = "m_PatientCount", UpdateCheck = UpdateCheck.Never)]
        public string PatientCount
        {
            get { return m_PatientCount; }
            set { this.m_PatientCount = value; }
        }
        private bool m_IsOutFromStation;
        /// <summary> 
        /// 是否站内出动
        /// </summary> 
        [Column(Name = "是否站内出动", DbType = "bit", Storage = "m_IsOutFromStation", UpdateCheck = UpdateCheck.Never)]
        public bool IsOutFromStation
        {
            get { return m_IsOutFromStation; }
            set { this.m_IsOutFromStation = value; }
        }
        private string m_ForeTaskID;
        /// <summary> 
        /// 改派前任务编码
        /// </summary> 
        [Column(Name = "改派前任务编码", DbType = "char(20)", Storage = "m_ForeTaskID", UpdateCheck = UpdateCheck.Never)]
        public string ForeTaskID
        {
            get { return m_ForeTaskID; }
            set { this.m_ForeTaskID = value; }
        }
        private string m_FactAddr;
        /// <summary> 
        /// 实际送往地点
        /// </summary> 
        [Column(Name = "实际送往地点", DbType = "varchar(100)", Storage = "m_FactAddr", UpdateCheck = UpdateCheck.Never)]
        public string FactAddr
        {
            get { return m_FactAddr; }
            set { this.m_FactAddr = value; }
        }
        private string m_CenterCode;
        /// <summary>
        /// 中心编码
        /// </summary>
        [Column(Name = "中心编码", DbType = "int", Storage = "m_CenterCode", UpdateCheck = UpdateCheck.Never)]
        public string CenterCode
        {
            get { return m_CenterCode; }
            set { m_CenterCode = value; }
        }
        private string m_CenterName;//中心名称
        public string CenterName
        {
            get { return m_CenterName; }
            set { m_CenterName = value; }
        }
        private string m_DriverCodes;
        /// <summary>
        /// 司机编码
        /// </summary>
        public string DriverCodes
        {
            get { return m_DriverCodes; }
            set { m_DriverCodes = value; }
        }
        private string m_DoctorCodes;
        /// <summary>
        /// 医生编码
        /// </summary>
        public string DoctorCodes
        {
            get { return m_DoctorCodes; }
            set { m_DoctorCodes = value; }
        }
        private string m_NurseCodes;
        /// <summary>
        /// 护士编码
        /// </summary>
        public string NurseCodes
        {
            get { return m_NurseCodes; }
            set { m_NurseCodes = value; }
        }
        private string m_LitterCodes;
        /// <summary>
        /// 担架工编码
        /// </summary>
        public string LitterCodes
        {
            get { return m_LitterCodes; }
            set { m_LitterCodes = value; }
        }
        private string m_RescueCodes;
        /// <summary>
        /// 抢救员编码
        /// </summary>
        public string RescueCodes
        {
            get { return m_RescueCodes; }
            set { m_RescueCodes = value; }
        }
    }
}
